package com.slz3.business.module.systemManagement.sysRolePermissions.repository;

import com.slz3.business.module.systemManagement.sysRolePermissions.domain.SysRolePermissions;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;
import java.util.UUID;

public interface SysRolePermissionsRepository extends JpaRepository<SysRolePermissions, UUID>, JpaSpecificationExecutor<SysRolePermissions>, SysRolePermissionsCustomizedRepository {

    List<SysRolePermissions> queryByRoleUuidAndMenuUuid(UUID roleUuid, UUID menuUuid);

    int deleteByRoleUuidAndMenuUuid(UUID roleUuid, UUID menuUuid);
}
